import { createRouter, createWebHistory } from 'vue-router';
import GitLinkPage from '@/views/GitLinkPage.vue';
import DownloadPage from '@/views/DownloadPage.vue';
import AiChatPage from '@/views/AiChatPage.vue';

const routes = [
  { path: '/', redirect: '/git-link' },
  { path: '/git-link', component: GitLinkPage },
  { path: '/download', component: DownloadPage },
  { path: '/chat', component: AiChatPage },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;